[QEMU] rtl8139: Disallow chaining above 64K
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 17 Nov 2006 10:34:08 +0000 (10:34 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 17 Nov 2006 10:34:08 +0000 (10:34 +0000)
commit329f3fcc6ef0178052fdb5743a895f819d4caa7b
treeab100c48eb2fc6c0f1d402381e974099e7a8cf7f
parent9713e418948139acd4b990f2b8f912f852368dff
[QEMU] rtl8139: Disallow chaining above 64K

As it stands the 8139C+ TX chaining is only bounded by realloc failure.
This is contrary to how the real hardware operates.  It also has DoS
potential when ioemu runs in dom0.

This patch makes any attempt to chain a frame beyond 64K fail
immediately.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
tools/ioemu/hw/rtl8139.c